﻿namespace Hsenl {
    public static class HashHelper {
        public static int GetHashCode(int v1, int v2) {
            var hash = 17;
            hash = hash * 31 + v1;
            hash = hash * 31 + v2;
            return hash;
        }

        public static int GetHashCode(int v1, int v2, int v3) {
            var hash = 17;
            hash = hash * 31 + v1;
            hash = hash * 31 + v2;
            hash = hash * 31 + v3;
            return hash;
        }

        public static int GetHashCode(int v1, int v2, int v3, int v4) {
            var hash = 17;
            hash = hash * 31 + v1;
            hash = hash * 31 + v2;
            hash = hash * 31 + v3;
            hash = hash * 31 + v4;
            return hash;
        }

        public static int GetHashCode(int v1, int v2, int v3, int v4, int v5) {
            var hash = 17;
            hash = hash * 31 + v1;
            hash = hash * 31 + v2;
            hash = hash * 31 + v3;
            hash = hash * 31 + v4;
            hash = hash * 31 + v5;
            return hash;
        }

        public static int GetHashCode(int v1, int v2, int v3, int v4, int v5, int v6) {
            var hash = 17;
            hash = hash * 31 + v1;
            hash = hash * 31 + v2;
            hash = hash * 31 + v3;
            hash = hash * 31 + v4;
            hash = hash * 31 + v5;
            hash = hash * 31 + v6;
            return hash;
        }
    }
}